tspclusterdir=$(pkglibdir)
tspcluster_SCRIPTS = tspcluster.exe
EXTRA_DIST = $(tspcluster_sources) $(tspcluster_sources_in)
CLEANFILES = tspcluster.exe *~ *.txt *.dat *.tex *.bmp
DISTCLEANFILES = AssemblyInfo.cs Makefile.in

tspcluster_sources_in = AssemblyInfo.cs.in
tspcluster_generated_sources = $(tspcluster_sources_in:.in=)
tspcluster_sources =  \
	Algorithm/FlatBoltzmann.cs \
	Algorithm/FlatHistogram.cs \
	Algorithm/Metropolis.cs \
	Algorithm/MultiCanonicalAnnealing.cs \
	Algorithm/NaiveImplementation.cs \
	Algorithm/ProfileSwappers.cs \
	Algorithm/SimulatedAnnealing.cs \
	Algorithm/TransitionMatrix.cs \
	Algorithm/TransitionMatrix2.cs \
	Algorithm/WangLandau.cs \
	AlgorithmType.cs \
	ComputerInfo.cs \
	Cyclic.cs \
	Distance.cs \
	Distribution.cs \
	DistributionEstimator.cs \
	IRoute.cs \
	LeastSquares.cs \
	Map.cs \
	MapVisualizer.cs \
	MapStatistics.cs \
	MarkovChain.cs \
	MarkovCluster.cs \
	MatrixMath.cs \
	Metric.cs \
	MetricNotSupportedException.cs \
	PermutationIterator.cs \
	Program.cs \
	RandomPermutation.cs \
	RemotingClient.cs \
	RemotingServer.cs \
	Results.cs \
	Route.cs \
	Subset.cs \
	Swapper/BruteForceSwapper.cs \
	Swapper/HasParameterAttribute.cs \
	Swapper/ISwapper.cs \
	Swapper/Swap311.cs \
	Swapper/Swap321.cs \
	Swapper/Swap331.cs \
	Swapper/Swap343.cs \
	Swapper/Swap361.cs \
	Swapper/Swappers.cs \
	Swapper/SwapRandom.cs \
	Transitions.cs \
	TransitionType.cs \
	TypeComparer.cs \
	VectorMath.cs 

tspcluster_build_sources = $(addprefix $(srcdir)/, $(tspcluster_sources))
tspcluster_build_sources += $(tspcluster_generated_sources)
resources = 
references =  \
	/r:System \
	/r:System.Drawing \
	/r:System.Runtime.Remoting \
	/r:System.ServiceProcess

embedded= $(foreach res,$(resources), $(addprefix -resource:,$(res)),$(notdir $(res)))

tspcluster.exe: $(tspcluster_build_sources) $(resources)
	$(GMCS) /debug:pdbonly /optimize+ $(embedded) $(references) $(DNANALYTICS_LIBS) -out:$@ $(tspcluster_build_sources)

# Install Unstable Mono Libraries (see configure.ac)

install-data-hook:
	for ASM in $(INSTALLED_ASSEMBLIES); do \
		$(INSTALL) -c -m 0755 $$ASM $(DESTDIR)$(pkglibdir); \
	done;

uninstall-hook:
	for ASM in $(INSTALLED_ASSEMBLIES); do \
		rm -f $(DESTDIR)$(pkglibdir)/`basename $$ASM`; \
	done;

